package com.xxx.jdbc2;

import java.sql.Date;
import java.time.LocalDateTime;

/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/7/28 15:22
 * @Copyright 博为峰
 */
public class Student {
    private int id;
    private String name;
    private int age;
    private double height;
    private String sex;
    private LocalDateTime birthday;
    private int claId;

    public Student() {
    }

    public Student(int id, String name, int age, double height, String sex, LocalDateTime birthday, int claId) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.height = height;
        this.sex = sex;
        this.birthday = birthday;
        this.claId = claId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public LocalDateTime getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDateTime birthday) {
        this.birthday = birthday;
    }

    public int getClaId() {
        return claId;
    }

    public void setClaId(int claId) {
        this.claId = claId;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", height=" + height +
                ", sex='" + sex + '\'' +
                ", birthday=" + birthday +
                ", claId=" + claId +
                '}';
    }
}
